/**
 * 
 */
package edu.tsinghua.mrpvc.device;

/**
 * @author Tangjian Deng
 *
 * Last updated by Tangjian, on 2009-11-17
 */
public interface CurtainDevice extends BasicDevice {
	public int open();
	public int close();
	public int getState();
	
	public static final String EVENT_TOPIC_STATE 		= "863pvc/Device/CurtainCtrl/State";
	public static final String EVENT_TOPIC_ISVALID 		= "863pvc/Device/CurtainCtrl/Ctrl/IsValid";
	public static final String EVENT_TOPIC_ACTION 		= "863pvc/Device/CurtainCtrl/Ctrl/Action";
	public static final String EVENT_TOPIC_CURSTATE 	= "863pvc/Device/CurtainCtrl/Ctrl/CurState";
	public static final String EVENT_PROPER_ID 			= "ID";
	public static final String EVENT_PROPER_STATE 		= "State";
	public static final String EVENT_PROPER_ISVALID 	= "IsValid";
	public static final String EVENT_PROPER_ACTION 		= "Action";
	
	public interface Constants {
		public static final String ACTION_CLOSE			= "0";
		public static final String ACTION_OPEN			= "1";
		
		//updated by fw on 11-28
		//change int type to String type 
		public static final String STATE_CLOSE 			= "0";
		public static final String STATE_OPEN 			= "1";
		
		//added by fw on 11-28
		public static final String ISVALID_TRUE 		= "true";
		public static final String ISVALID_FALSE		= "false";
	};
}
